package com.fanqj.demo.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(DemoConfigMarker.class)
public class AutoDemoConfig {

	static {
		System.out.println("load DemoConfig");
	}

	@Bean
	public DemoBean demoBean() {
		return new DemoBean();
	}

}
